/* 总体 */

* {
    /*line-height: 30px;*/
    margin: 0; border: 0; padding: 0;
    font-family: "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
    text-align: center;
    transition: background-color 200ms, color 50ms;
}

/* coord (坐标) 相关 */
.coord {
    position: relative;
    margin-left: auto; margin-right: auto;
    vertical-align: middle;
    /*border-width: 1px; border-color: black; border-style: solid;*/
}

.coord ul {
    overflow: hidden;
}

.coorditem, .coord input {
    border-radius: 2px;
    padding: 2px;margin: 2px;
    height: 16px;
    min-width: 32px;
    font-size: 12px; line-height: 16px; font-weight: normal;
    float: left;
    -webkit-user-select: none; /* Chrome/Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+ */
    list-style-type: none;
    background-color: #e6e6e6;
    cursor: pointer;
    position: relative;
    display: block;
}

.coorditem:hover  {
    background-color: #a9c9e9;
}

.coorditem:active, .coorditem.active:active {
    background-color: #2166ac;
    color: white;
}

.coorditem.active  {
    background-color: #7cb5ec;
}
.coorditem.active_1 {
    background-color: #fc8d62;
}
.coorditem.active_2 {
    background-color: #a6d854;
}
.coorditem.active_3 {
    background-color: #ffd92f;
}
.coorditem.active_4 {
    background-color: #e78ad2;
}
.coorditem.active_5 {
    background-color: #66c2a5;
}
.coorditem.active_6 {
    background-color: #e5c494;
}
/*.coorditem.active:nth-child(2) {*/
    /*background-color: #434348;*/
/*}*/
/*.coorditem.active:nth-child(3) {*/
    /*background-color: #90ed7d;*/
/*}*/
/*.coord ul .active:nth-match(2) {*/
    /*background-color: #434348;*/
/*}*/
/*.coord ul .active:nth-match(3) {*/
    /*background-color: #90ed7d;*/
/*}*/


.coord .button:active, .coord .button.active:active {
    background-color: #2166ac;
    color: white;
}

.coord input {
    width: 32px;
}

.vertical_text {
    transform: rotate(-90deg);
    transform-origin: left top 0;
}

.layer {
    display: none
}
.layer.ontop {
    display: block;
}

.button_row {
    height: 36px;
    /*padding: 2px;*/
    position: relative;
    /*background-color: #b1d0e0;*/
}
.bigtoolbutton_row {
    height: 52px;
}

.button {
    width: 32px; height: 32px;
    /*position: absolute;*/
    position: relative;
    margin: 2px;
    float: left;
    border-radius: 5px;
    background-color: #e6e6e6;
    line-height: 32px;
    text-align: center;
    vertical-align: baseline;
    cursor: pointer;
    -webkit-user-select: none; /* Chrome/Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+ */
}
.button:hover {
    background-color: #a9c9e9;
}
.button:active, .button.active:active {
    background-color: #2166ac;
    color: white;
}
.button.active {
    background-color: #74add1;
}

.button.disabled {
    color: #888888;
}
.button.disabled:hover, .button.disabled:active {
    color: #888888;
    background-color: #d4d4d4;
}

.bigtoolbutton {
    position: relative;
    float: left;
    width: 36px;
    height: 48px;
    overflow:hidden;
}
.bigtoolbutton > i {
    position: relative;
    font-size: 24px;
    width: 24px;
    height: 24px;
    top: 2px;
    margin: auto;
    margin-top: 4px;
    overflow: hidden;
}
.bigtoolbutton span, .bigtoolbutton select {
    position: absolute;
    bottom: 4px;
    font-size: 10px; font-weight: bold;
    height: 12px; line-height: 12px;
    width: 100%;
    text-align: center;
    display: block;
}
.bigtoolbutton select {
    -webkit-appearance:     none;
    -moz-appearance:        none;
    -ms-appearance:         none;
    -o-appearance:          none;
    appearance:             none;
    outline: none;
    background-color: transparent;
    background-image: url(images/caret.svg);
    background-repeat: no-repeat;
    background-size: auto 100%;
    background-position: right;
}
.bigtoolbutton:active select, .bigtoolbutton.active select {
    color: white;
}
.bigtoolbutton select option {
    color: black;
    font-size: 12px;
}

.loading {
    display: none
}

.close, .minmax, .itemloading {
    position: absolute; top: -4px;
    width: 20px; height: 20px;
    line-height: 20px;
    border-radius: 10px;
    background-repeat: no-repeat;
    background-position: center center;
    display: none;
}
:hover > .close, :hover > .minmax {
    display: block;
}
.close:hover, .minmax:hover {
    display: block;
}
/*.close.active, .minmax.active {*/
    /*display: block;*/
/*}*/
/*.close.active:hover, .minmax.active:hover {*/
    /*display: block;*/
/*}*/

.close {
    right: -4px;
    /*background-color: rgba(0, 0, 0, 0.3);*/
    background-color: rgba(255, 0, 0, 0.5);
    background-image: url(/static/icon/remove.png);
}
.close:hover {
    background-color: red;
}
/*.close.active {*/
    /*background-color: rgba(255, 0, 0, 0.5);*/
/*}*/
/*.close.active:hover {*/
    /*background-color: red;*/
/*}*/

.minmax {
    right: 20px;
    background-color: rgba(255, 165, 0, 0.5);
    background-image: url(/static/icon/min.png);
}
.minmax:hover {
    background-color: orange;
}
.collapsed .minmax {
    background-color: rgba(34, 139, 34, 0.5);
    background-image: url(/static/icon/max.png);
}
.collapsed .minmax:hover {
    background-color: forestgreen;
}

.itemloading {
    right: -4px;
    font-size: 20px;
    color: #3A8ABF;
}

.emblem {
    position: absolute; top:1px; right: 1px;
    width: 18px; height: 18px; border-radius: 4px;
    background: rgba(50, 50, 120,0.7); color: white;
    font-size: 10px; line-height: 18px;
    text-align: center;
}

.input_wrapper {
    padding: 0;
    text-indent: 0;
}
.input_wrapper > .input {
    width: 100%; height: 100%;
    text-align: left;
}
.input_wrapper > input {
    resize: none;
    padding: 0 5px 0 5px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.input_wrapper > textarea {
    resize: none;
    padding: 5px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* 不显示的icon */
i.hidden {
    display: none;
}

div.clearfloat {
    width: 0; height: 0;
    clear: both;
}

/*.nano { width: 100%; height: 100%; }*/
.nano > .nano-content { padding: 0px; padding-right: 0px}
/*.nano > .nano-pane   { background: #bbb; }*/
.nano > .nano-pane > .nano-slider { background: dimgrey; }
.nano > .nano-pane { width: 5px;}
